package com.doliere.android.app.wifidirectservice.listeners;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.wifi.p2p.WifiP2pManager;
import android.net.wifi.p2p.WifiP2pManager.Channel;

public class BReceiver extends BroadcastReceiver {
	
	
	/*
	 * Keep references to the The P2P Wifi Manager, the Channel and the Activity that holds the Broadcast Receiver
	 */
	private WifiP2pManager mWifiP2pManager; // Wifi Direct manager.
	private Channel mChannel;  // Channel that enabled Wifi Direct callback methods.
	private Activity mActivity; // Activity that will hold the broadcast receiver object.
	
	public BReceiver(WifiP2pManager p2pWifiManager, Channel channel,Activity activity){
		mWifiP2pManager = p2pWifiManager;
		mChannel = channel;
		mActivity = activity;
	}
	@Override
	public void onReceive(Context context, Intent intent) {
		
		String action = intent.getAction();
		if(WifiP2pManager.WIFI_P2P_CONNECTION_CHANGED_ACTION.equals(action)){
			
		}else if(WifiP2pManager.WIFI_P2P_PEERS_CHANGED_ACTION.equals(action)){
			
		}else if(WifiP2pManager.WIFI_P2P_STATE_CHANGED_ACTION.equals(action)){
			
		}else if(WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION.equals(action)){
			
		}
	}

}
